<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>Title</title>

    <script>
        console.log(+0 === -0);   // === 的缺点
        console.log(NaN === NaN);

        console.log('----------------');

        console.log(Object.is(+0, -0));  // 同值相等
        console.log(Object.is(NaN, NaN));

    </script>

</head>
<body>

</body>
</html>